class EventLogManagerController.MainFrameKeyEventDispatcher extends Object implements KeyEventDispatcher
KeyEventDispatcher
to realise
a specific key event dispatcher to give to the KeyboardFocusManager
of the main JFrame
.
This dispatcher gets all the KEY_PRESSED
events and checks if they are
some specific shortcuts used to call the buttons of the
EventLogManagerView
.
If they are, this class calls the correct function connected to those specific shortcuts.
KeyEventDispatcher
,
KeyboardFocusManager
,
JFrame
Constructor and Description |
---|
MainFrameKeyEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
dispatchKeyEvent(KeyEvent e)
This method is called by the current KeyboardFocusManager requesting
that this KeyEventDispatcher dispatch the specified event on its behalf.
|
public boolean dispatchKeyEvent(KeyEvent e)
This methods gets all the KEY_PRESSED
events and checks if they are
some specific shortcuts used to call the buttons of the
EventLogManagerView
.
If they are, this method calls the correct function connected to those specific shortcuts.
dispatchKeyEvent
in interface KeyEventDispatcher
e
- the KeyEvent
to dispatchtrue
if the KeyboardFocusManager
should take no further action
with regard to the KeyEvent
; false otherwiseKeyboardFocusManager
,
KeyEvent